<script language="javascript" type="text/javascript" src="javascripts/site.js"></script>

<% @page_title = " :: Edit #{@replica_system.name}" %>

<% content_for :sidebar do %>
	<div class="little_infos">
		<div class="little_content"><%= awareness_message %></div>
	
		<div class="little_content">
			<span class="sidebar_title">You can</span>
			<%= link_to 'Back to Storage System', :action => 'show', :id => @replica_system %>
		</div>
	</div>
<% end %>

<% form_for :replica_system, :url => { :action => 'update', :id => @replica_system } do |f| %>
<% field_set_tag do %>
	<div class="span-17 last">
		<p><label for="replica_system_name">Storage System Name</label><br />
		<%= f.text_field :name, :class => 'text required_field' %></p>
	</div>
		
	<hr class="separator" />
	<div class="span-7">
		<p><label for="replica_system_hostname">Hostname</label>
		<%= f.text_field :hostname, :class => 'text required_field' %><br />
		<span class="text_info">E.g.: domain.com; www.domain.com;<br />c:\storage; /home/user/storage</span></p>
	</div>
	
	<div class="span-7 last">
		<p><label for="replica_system_internal_uri">Internal Path</label>
		<%= f.text_field :internal_uri, :class => 'text' %><br />
		<span class="text_info">E.g.: /assets; \radio\assets</span></p>
	</div>
	
	<hr class="separator" />
	<p><%= check_box_tag :enable_autentication, '1', false, :onclick => 'enable_activation(false)' %>
	<label for="enable_autentication">Modify Authentication</label></p>
	
	<div class="span-7">
		<p><label for="replica_system_username">Username</label>
		<%= f.text_field :username, :disabled => true, :class => 'text' %></p>
	</div>
	
	<div class="span-7 last">
		<p><label for="replica_system_password">Password</label>
		<%= f.password_field :password, :disabled => true, :class => 'text' %></p>
	</div>
	
	<hr class="separator" />
	<div class="span-7">
		<p><label for="replica_system_protocol">Protocol</label><br />
		<%= f.select :protocol, @protocols.collect {|p| p}, { :prompt => 'Select a Protocol' } %></p>
	</div>
<% end %>
<div class="span-17 centered last">
	<%= submit_tag 'Save', :disable_with => 'Saving&hellip;', :class => 'buttons' %>
</div>
<% end %>